package com.yilin.medical.activity;

import android.content.Intent;
import android.os.Bundle;

import com.yilin.medical.R;

/**
 * 闪屏界面
 * 
 * @author lijianqun
 * 
 */
public class SpalahActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// setContentViewWithTitle(R.layout.activity_main);
		setContentViewWithTitle(R.layout.activity_main);
		mTitle.getTitle().setText("启动页面");

		new Thread() {
			public void run() {
				try {

					// TODO 判断是否登录,如果登录就进入homeActivity;否则跳到登录界面
					sleep(1000);
					Intent intent = new Intent(SpalahActivity.this,
							LoginActivity.class);

					startActivity(intent);
					finish();
				} catch (Exception e) {
					e.printStackTrace();
				}
			};

		}.start();
	}
}
